import request from "@/utils/request";
// 登录
export const Login = (data) => {
	return request({
		url: "/login/wx",
		method: "post",
		data,
		showLoading: false,
	});
};

//首页
export const echoShowList = (data) => {
	return request({
		url: "/wx/enterprise/echo-show-list",
		method: "post",
		data,
		showLoading: false,
	});
};

// 查看当前用户关注俱乐部列表
export const getConcernList = (data) => {
	return request({
		url: "/wx/concern/get-concern-list",
		method: "post",
		data,
		showLoading: false,
	});
};
// 用户新增是否关注
export const saveConcern = (data) => {
	return request({
		url: "/wx/concern/save-concern",
		method: "post",
		data,
		showLoading: false,
	});
};



// 优惠券首页
export const getTicketByEntId = (data) => {
	return request({
		url: "/wx/ticket/getTicketByEntId",
		method: "post",
		data,
		showLoading: false,
	});
};

// 优惠券更多
export const getTicketPageByEntId = (data) => {
	return request({
		url: "/wx/ticket/getTicketPageByEntId",
		method: "post",
		data,
		showLoading: false,
	});
};
// 优惠券->详情
export const getTicketDetail = (data) => {
	return request({
		url: "/wx/ticket/getTicketDetail",
		method: "post",
		data,
		showLoading: false,
	});
};
// 支付
export const pay = (data) => {
	return request({
		url: "/wx/pay/pay",
		method: "post",
		data,
		showLoading: false,
	});
};

// 枚举
export const getMnumByName = (data) => {
	return request({
		url: "/common/get-enum-by-name",
		method: "post",
		data,
		showLoading: false,
	});
};
// 发现-推荐
export const echoRecommend = (data) => {
	return request({
		url: "/wx/enterprise/echo-recommend",
		method: "post",
		data,
		showLoading: false,
	});
};
// 俱乐部首页
export const echoEnterpriseById = (data) => {
	return request({
		url: "/wx/enterprise/echo-enterprise-by-id",
		method: "post",
		data,
		showLoading: false,
	});
};
// 根据企业id查赛事活动列表
export const gameList = (data) => {
	return request({
		url: "/wx/game/game-list",
		method: "post",
		data,
		showLoading: false,
	});
};
//根据赛事Id查询具体赛事
export const getDetailGameById = (data) => {
	return request({
		url: "/wx/game/get-detail-game-by-id",
		method: "post",
		data,
		showLoading: false,
	});
};

//获取企业下的所有场地类型
export const siteTypes = (data) => {
	return request({
		url: "/wx/site-book/siteTypes",
		method: "post",
		data,
		showLoading: false,
	});
};
//根据当前企业，查询会员的场地类型
export const echoSiteByEnterpriseId = (data) => {
	return request({
		url: "/wx/member/echo-site-by-enterprise-id",
		method: "post",
		data,
		showLoading: false,
	});
};

//分类获取企业下的所有上架场地、参数为分类id企业id
export const siteBookPageByType = (data) => {
	return request({
		url: "/wx/site-book/siteBookPageByType",
		method: "post",
		data,
		showLoading: false,
	});
};

//获取某个场地未来7天内（包括今天）某一天的场次信息
export const sitePriceRecordOnDay = (data) => {
	return request({
		url: "/wx/site-book/sitePriceRecordOnDay",
		method: "post",
		data,
		showLoading: false,
	});
};

//根据场地id查询场地信息和会员卡列表
export const echoMemberBySiteId = (data) => {
	return request({
		url: "/wx/member/echo-member-by-site-id",
		method: "post",
		data,
		showLoading: false,
	});
};

//微信小程序修改个人信息
export const updateInformation = (data) => {
	return request({
		url: "/wxUser/update-information",
		method: "post",
		data,
		showLoading: false,
	});
};

//查询当期用户下的已保存的参赛者信息 (个人)
export const entryList = (data) => {
	return request({
		url: "/wx/entry/entry-list",
		method: "post",
		data,
		showLoading: false,
	});
};
//列表
export const teamList = (data) => {
	return request({
		url: "/wx/group/team-list",
		method: "post",
		data,
		showLoading: false,
	});
};
//新增参赛者信息
export const saveEntry = (data) => {
	return request({
		url: "/wx/entry/save-entry",
		method: "post",
		data,
		showLoading: false,
	});
};

//新增团队
export const saveTeam = (data) => {
	return request({
		url: "/wx/group/save-team",
		method: "post",
		data,
		showLoading: false,
	});
};

//用户新增投诉建议
export const saveComplaint = (data) => {
	return request({
		url: "/wx/concern/save-complaint",
		method: "post",
		data,
		showLoading: false,
	});
};


//首页-发现-赛事
export const echoDiscovery = (data) => {
	return request({
		url: "/wx/game/echo-discovery",
		method: "post",
		data,
		showLoading: false,
	});
};

//报名-个人/团队
export const applicationSelfTeam = (data) => {
	return request({
		url: "/wx/group/application-self-team",
		method: "post",
		data,
		showLoading: false,
	});
};

//查询订单列表
export const echoList = (data) => {
	return request({
		url: "/wx/order/echo-list",
		method: "post",
		data,
		showLoading: false,
	});
};
//根据会员id回显会员和动态表单字段
export const echoMemberDynamic = (data) => {
	return request({
		url: "/wx/member/echo-member-dynamic",
		method: "post",
		data,
		showLoading: false,
	});
};

//根据订单ID查询付款结果
export const queryPayRes = (data) => {
	return request({
		url: "/wx/pay/queryPayRes",
		method: "post",
		data,
		showLoading: false,
	});
};

//选择场次后获取列表信息
export const chooseSiteRecordList = (data) => {
	return request({
		url: "/wx/site-book/chooseSiteRecordList",
		method: "post",
		data,
		showLoading: false,
	});
};

//首页特殊订场弹窗
export const specialBookInfo = (data) => {
	return request({
		url: "/wx/site-book/specialBookInfo",
		method: "post",
		data,
		showLoading: false,
	});
};

//我的会员列表
export const echoMemberList = (data) => {
	return request({
		url: "/wx/member/echo-member-list",
		method: "post",
		data,
		showLoading: false,
	});
};

//根据订单ID获取核销二维码-base64字符串
export const getQrCode = (data) => {
	return request({
		url: "/wx/verification/getQrCode",
		method: "post",
		data,
		showLoading: false,
	});
};

//根据所选id回显对应 个人/团队
export const applicationSelfTeamBySourceId = (data) => {
	return request({
		url: "/wx/group/application-self-team-by-source-id",
		method: "post",
		data,
		showLoading: false,
	});
};

//根据赛事id获取动态表单字段
export const echoDynamicByGameId = (data) => {
	return request({
		url: "/wx/entry/echo-dynamic-by-game-id",
		method: "post",
		data,
		showLoading: false,
	});
};

//根据Id回显参赛者详细信息
export const echoEntryDetailById = (data) => {
	return request({
		url: "/wx/entry/echo-entry-detail-by-id",
		method: "post",
		data,
		showLoading: false,
	});
};

//赛事活动页面
export const getDetailActivity = (data) => {
	return request({
		url: "/wx/game/get-detail-activity",
		method: "post",
		data,
		showLoading: false,
	});
};

//根据订单id展示二维码与详细信息
export const echoDetail = (data) => {
	return request({
		url: "/wx/order/echo-detail",
		method: "post",
		data,
		showLoading: false,
	});
};

//核销
export const verification = (data) => {
	return request({
		url: "/wx/verification/verification",
		method: "post",
		data,
		showLoading: false,
	});
};